<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>溢出</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            border: 1px solid red;
            /*溢出设置,默认显示 hidden隐藏*/
            overflow: hidden;/*隐藏超出部分  hidden意为隐藏*/
        }
    </style>
</head>
<body>
<div>
    <img src="01.jpg" alt="">
</div>
</body>
</html>